package com.example.thirdstage_project.utils;

import com.example.thirdstage_project.ov.LoginVO;


public class UserHolder {
    private static final ThreadLocal<LoginVO> tl = new ThreadLocal<>();

    public static void saveUser(LoginVO user){
        tl.set(user);
    }

    public static LoginVO getUser(){
        return tl.get();
    }

    public static void removeUser(){
        tl.remove();
    }
}
